package com.tanhua.server.controller;

import com.tanhua.dubbo.api.RecommendUserApi;
import com.tanhua.server.service.TodayBestService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tanhua")
public class TodayBestController {

    @Autowired
    private TodayBestService todayBestService;
    @GetMapping("/todayBest")
    public Object TodayBest(@RequestHeader("Authorization") String token){
        return this.todayBestService.queryTodayBest(token);
    }


}
